SENSE HAT EMULATOR

from sense_hat import SenseHat import time s = SenseHat() s.low_light = True brown = (52, 32, 32) mostacho = (107, 41, 41) carne = (163, 95, 95) green = (0, 255, 0) yellow = (255, 255, 0) blue = (0, 0, 255) red = (255, 0, 0) white = (255,255,255) nothing = (0,0,0) pink = (255,105, 180) def cara(): B = brown C = carne O = nothing W = white M = mostacho logo = [ B, B, C, C, C, C, B, B, C, B, B, C, C, B, B, C, C, W, B, C, C, B, W, C, C, W, O, C, C, O, W, C, C, C, C, C, C, C, C, C, C, M, M, M, M, M, M, C, C, M, C, C, C, C, M, C, C, M, C, C, C, C, M, C, ] return logo def trinket_logo(): G = green Y = yellow B = blue O = nothing logo = [ O, O, O, O, O, O, O, O, O, Y, Y, Y, B, G, O, O, Y, Y, Y, Y, Y, B, G, O, Y, Y, Y, Y, Y, B, G, O, Y, Y, Y, Y, Y, B, G, O, Y, Y, Y, Y, Y, B, G, O, O, Y, Y, Y, B, G, O, O, O, O, O, O, O, O, O, O, ] return logo def raspi_logo(): G = green R = red O = nothing logo = [ O, G, G, O, O, G, G, O, O, O, G, G, G, G, O, O, O, O, R, R, R, R, O, O, O, R, R, R, R, R, R, O, R, R, R, R, R, R, R, R, R, R, R, R, R, R, R, R, O, R, R, R, R, R, R, O, O, O, R, R, R, R, O, O, ] return logo def plus(): W = white O = nothing logo = [ O, O, O, O, O, O, O, O, O, O, O, W, W, O, O, O, O, O, O, W, W, O, O, O, O, W, W, W, W, W, W, O, O, W, W, W, W, W, W, O, O, O, O, W, W, O, O, O, O, O, O, W, W, O, O, O, O, O, O, O, O, O, O, O, ] return logo def equals(): W = white O = nothing logo = [ O, O, O, O, O, O, O, O, O, W, W, W, W, W, W, O, O, W, W, W, W, W, W, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, W, W, W, W, W, W, O, O, W, W, W, W, W, W, O, O, O, O, O, O, O, O, O, ] return logo def heart(): P = pink O = nothing logo = [ O, O, O, O, O, O, O, O, O, P, P, O, P, P, O, O, P, P, P, P, P, P, P, O, P, P, P, P, P, P, P, O, O, P, P, P, P, P, O, O, O, O, P, P, P, O, O, O, O, O, O, P, O, O, O, O, O, O, O, O, O, O, O, O, ] return logo images = [cara, cara, plus, raspi_logo, raspi_logo, equals, heart, heart,] count = 0 while True: s.set_pixels(images[count % len(images)]()) time.sleep(.75) count += 1